home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / ashe-1.1 / xhtml.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-15  |  2.6 KB  |  120 lines

  1. /*
  2. * xhtml.h - (c) 1994 Copyright by John R. Punin
  3. *
  4. * Main Header Files
  5. *
  6. *
  7. */
  8.  
  9.  
  10. #include <stdlib.h>
  11. #include <stdio.h>
  12. #include <string.h>
  13. #include <sys/types.h>
  14. #include <sys/stat.h>
  15. #include <sys/param.h>
  16. #include <fcntl.h>
  17.  
  18. #include<X11/cursorfont.h>
  19.  
  20. #include <Xm/Xm.h>        /* Needed by all Motif programs. */
  21.  
  22. #include <Xm/MessageB.h>        /* Needed by all X Window programs */
  23. #include <Xm/CascadeB.h>
  24. #include <Xm/Form.h>
  25. #include <Xm/MainW.h>
  26. #include <Xm/PanedW.h>
  27. #include <Xm/PushB.h>
  28. #include <Xm/RowColumn.h>
  29. #include <Xm/Text.h>
  30. #include <Xm/DialogS.h>
  31. #include <Xm/Label.h>
  32. #include <Xm/SelectioB.h>
  33. #include <Xm/FileSB.h>
  34. #include <Xm/BulletinB.h>
  35. #include <Xm/ScrollBar.h>
  36. #include <Xm/ToggleB.h>
  37. #include <Xm/Separator.h>
  38. #include <Xm/Frame.h>
  39.  
  40. #include <HTML.h>
  41. /*
  42.  * * Global Constant variables
  43.  */
  44. #define XTEXT_STRING \
  45. "<!-- This is ASHE, Editor of the HTML Documents \n Written by John R. Punin \n(C) 1994 Copyright by Rensselaer Polytechnic Institute -->\n"
  46. #define SIZESTR                 60
  47. #define PERMS                   0664
  48. #define BUFSIZE                 1024  /* Size of the buffer */
  49. #define MAXARGS                 20
  50. #define MAXIPATH                 100
  51.  
  52. #define YES 1
  53. #define NO 2
  54. #define CANCEL 3
  55.  
  56. /* HTML Commands used in this editor */
  57.  
  58. enum commands { NONE, CLEAR,TITLE, PARAG, HEADER,LINKER ,REFER,IMAGE,PRE,
  59.          CITE,CODE,BLOCKQ,ADDR,BOLD,ITALIC,UNDER,DEFLIST,TERM,
  60.          UNLIST,ORLIST,ITEM,FORM,INPUT,SELECT,OPTION,TEXTAREA,HR,LINEBREAK,
  61.          COMMENT,HTML,BODY,HEAD,EM,STRONG,TT,CARAC};
  62.  
  63. /* Structure Undo */
  64.  
  65. typedef struct {
  66.    XmTextPosition right;
  67.    XmTextPosition left;
  68.    int lenleft;
  69.    int lenright;
  70.    enum commands com_html;
  71.    char ubuffer[BUFSIZE];
  72. } undo_struct;
  73.  
  74.  
  75. struct html_editor {
  76.    Widget shell;
  77.    Widget textarea;/* Text                */
  78.    Widget file_output;  /* Name of the file */
  79.    Widget text_output; /* Labels            */
  80.    Widget title_output;
  81.    Widget html_text;
  82.    Widget editwidget;
  83.    Widget open_dialog;
  84.    Widget insert_dialog;
  85.    Widget save_dialog;
  86.    Widget export_dialog;
  87.    XtPointer user_data;
  88.    int header_num;
  89.    int fonts;
  90.    int export_option;
  91.    Boolean toggle_mark_tag;
  92.    Boolean modified_file;
  93.    int method;
  94.    enum commands last_command;
  95.    undo_struct undo_buffer;
  96.    char Name_File[MAXIPATH];
  97.    char *format_file;
  98.    Boolean lose_focus;
  99.    char *warning;
  100.    char *href;
  101.    char *anchor_target;
  102.    char *text_cleared;
  103. };
  104.  
  105. typedef struct html_editor HTMLED;
  106.  
  107.  
  108. struct html_list{
  109.    HTMLED *fr;
  110.    struct html_list *next;
  111. };
  112. typedef struct html_list HTML_LIST;
  113.    
  114. struct _myAppRes {
  115.    String htmldir;
  116. };
  117. typedef struct _myAppRes MyAppResType;
  118.  
  119.  
  120.